<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditCustomerInvoiceEntityTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_amount}" for="amount" />
                    <h:inputText id="amount" value="#{customerInvoiceEntityController.selected.amount}" title="#{bundle.EditCustomerInvoiceEntityTitle_amount}" />
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_billingRequest}" for="billingRequest" />
                    <h:selectOneMenu id="billingRequest" value="#{customerInvoiceEntityController.selected.billingRequest}" title="#{bundle.EditCustomerInvoiceEntityTitle_billingRequest}" >
                        <f:selectItems value="#{billingRequestEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_discountDueDate}" for="discountDueDate" />
                    <h:inputText id="discountDueDate" value="#{customerInvoiceEntityController.selected.discountDueDate}" title="#{bundle.EditCustomerInvoiceEntityTitle_discountDueDate}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_dueDate}" for="dueDate" />
                    <h:inputText id="dueDate" value="#{customerInvoiceEntityController.selected.dueDate}" title="#{bundle.EditCustomerInvoiceEntityTitle_dueDate}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_earlyRebate}" for="earlyRebate" />
                    <h:inputText id="earlyRebate" value="#{customerInvoiceEntityController.selected.earlyRebate}" title="#{bundle.EditCustomerInvoiceEntityTitle_earlyRebate}" />
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_latePenalty}" for="latePenalty" />
                    <h:inputText id="latePenalty" value="#{customerInvoiceEntityController.selected.latePenalty}" title="#{bundle.EditCustomerInvoiceEntityTitle_latePenalty}" />
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_status}" for="status" />
                    <h:inputText id="status" value="#{customerInvoiceEntityController.selected.status}" title="#{bundle.EditCustomerInvoiceEntityTitle_status}" />
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_type}" for="type" />
                    <h:inputText id="type" value="#{customerInvoiceEntityController.selected.type}" title="#{bundle.EditCustomerInvoiceEntityTitle_type}" />
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_customerAccount}" for="customerAccount" />
                    <h:selectOneMenu id="customerAccount" value="#{customerInvoiceEntityController.selected.customerAccount}" title="#{bundle.EditCustomerInvoiceEntityTitle_customerAccount}" >
                        <f:selectItems value="#{customerAccountEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_id}" for="id" />
                    <h:inputText id="id" value="#{customerInvoiceEntityController.selected.id}" title="#{bundle.EditCustomerInvoiceEntityTitle_id}" />
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_createdAt}" for="createdAt" />
                    <h:inputText id="createdAt" value="#{customerInvoiceEntityController.selected.createdAt}" title="#{bundle.EditCustomerInvoiceEntityTitle_createdAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_createdBy}" for="createdBy" />
                    <h:inputText id="createdBy" value="#{customerInvoiceEntityController.selected.createdBy}" title="#{bundle.EditCustomerInvoiceEntityTitle_createdBy}" />
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_lastModifiedAt}" for="lastModifiedAt" />
                    <h:inputText id="lastModifiedAt" value="#{customerInvoiceEntityController.selected.lastModifiedAt}" title="#{bundle.EditCustomerInvoiceEntityTitle_lastModifiedAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditCustomerInvoiceEntityLabel_lastModifiedBy}" for="lastModifiedBy" />
                    <h:inputText id="lastModifiedBy" value="#{customerInvoiceEntityController.selected.lastModifiedBy}" title="#{bundle.EditCustomerInvoiceEntityTitle_lastModifiedBy}" />
                </h:panelGrid>
                <h:commandLink action="#{customerInvoiceEntityController.update}" value="#{bundle.EditCustomerInvoiceEntitySaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditCustomerInvoiceEntityViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{customerInvoiceEntityController.prepareList}" value="#{bundle.EditCustomerInvoiceEntityShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditCustomerInvoiceEntityIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
